$(function () {
    var iArtId = xhTool.getQuery('iArtId');
    if(iArtId !=''){
        $('[name=iArtId]').val(iArtId);
    }
    $(".form_date").datetimepicker({format: 'yyyy-mm-dd',language: 'zh-CN',minView: "month",autoclose:true});
    var form = new xhForm($('#xh_form'));
    form.parse();

    if(info != null){
        form.fill(info);
    }

    form.bindRequired($('#bt_modal_confirm',parent.document));
    $('#bt_modal_confirm',parent.document).click(function () {
        form.submit('school_share/saveCase',{},function (res) {
            window.top.xhTop.showSuccess(res.msg);
            window.top.xhTop.closeModal();
        })
    })

});
